CVE-2026-50643
Out‑of‑Bounds Read in 8cc
Description
8cc is vulnerable to an Out‑of‑Bounds Read due to improper handling of #line directives and GNU linemarkers. The compiler accepts attacker-controlled filename and line number metadata and later uses it without validation when accessing source line arrays. By supplying invalid or oversized line numbers, an attacker can trigger out-of-bounds memory access and a crash. Maintainer of this project was notified early about this vulnerability, but didn't respond with the details of vulnerability or vulnerable version range. Version corresponding to the commit b480958 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.
INFO
Published Date :
June 18, 2026, 8:58 a.m.
Last Modified :
June 18, 2026, 8:58 a.m.
Remotely Exploit :
No
Source :
CERT-PL
Affected Products
The following products are affected by CVE-2026-50643
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | MEDIUM | 4bb8329e-dd38-46c1-aafb-9bf32bcb93c6 |
Solution
- Update the compiler to the latest version.
- Apply patches for the compiler.
- Validate input for line directives.
- Sanitize filename and line number metadata.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-50643 vulnerability anywhere in the article.
-
cert.pl
Vulnerability in 8cc compiler
Vulnerability in 8cc compiler CVE ID CVE-2026-50643 Publication date 18 June 2026 Vendor rui314 Product 8cc Vulnerable versions b480958 Vulnerability type (CWE) Out-of-bounds Read (CWE-125) Report sou ... Read more